package org.nod.atgm.gameobjects;

import android.app.Activity;

import com.threed.jpct.Object3D;
import com.threed.jpct.Primitives;
import com.threed.jpct.SimpleVector;

public class APC extends Vehicle {
	
	public static final String ID = "APC";
	
	public APC(SimpleVector initialPos, SimpleVector initialDirection, float initialSpeed) {
		setSpeedVector(initialDirection);
		setScalarSpeed(initialSpeed);
		getObject().translate(initialPos);
	}

	@Override
	protected String getId() {
		return ID;
	}

	@Override
	protected void setupObject(Object3D object) {
		object.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
	}

	public static Object3D createBasicAPCObject(Activity context) {
		Object3D object = Primitives.getBox(3,0.7f);
		object.calcTextureWrap();
		object.setTexture("texture");//XXX
		object.compile();
		return object;
	}

}
